import {
    Entity, Column, 
    PrimaryGeneratedColumn,
    CreateDateColumn,
    UpdateDateColumn
} from 'typeorm'

@Entity()
export class User {
    @PrimaryGeneratedColumn()
    id: number
    @Column({length: 50})
    firstName: string
    @Column({length:50})
    lastName: string
    @Column({type: 'int'})
    age: number
    @Column({nullable: true, unique: false})
    email: string
    @Column({type: 'boolean', default: false})
    isActive: boolean
    @CreateDateColumn()
    createAt: Date
    @UpdateDateColumn()
    updateAt: Date
}